package cn.tedu.exec;

/**
 * @author: Dsi
 * @date: 2021/11/10 16:30
 * @description:该类用于面向对象的综合设计案例
 */
public class DesignTeacher {
}
abstract class Teacher{
    /**
     * 抽象父类制定规则，实际干活的交给子类
     */
    public abstract void ready();
    public abstract void teach();
}
class CGBTeacher extends Teacher{
    @Override
    public void ready() {
        System.out.println("正在备课，加强");
    }
    @Override
    public void teach() {
        System.out.println("正在讲课，加强");
    }

}
class ACTTeacher extends Teacher{
    @Override
    public void teach() {
        System.out.println("正在讲课，研发");
    }
    @Override
    public void ready() {
        System.out.println("正在备课，研发");
    }
}










